home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Testing & Debugging / TV-Man Package / With Source Version / Includes / TV-Man.Menus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-13  |  3.9 KB  |  115 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    TV-Man.Menu.h
  4. #
  5. #    Copyright © Apple Computer, Inc. 1989-1990
  6. #    All rights reserved.
  7. #
  8. #
  9. #
  10. #    This is the file that is common to all Menu stuff for this application.
  11. #
  12. #    In order to have an evironment which predictable events happen several definitions
  13. #    must be established. The most critical is in the file architecture. Each functional
  14. #    block will have its own source and header file. The main project file,  in this
  15. #    case TV-Man, will have its header file included with all other files. This will
  16. #    allow for global constants. The utility source file shall contain functions that
  17. #    are general purpose in nature and that can be used by all other functions. These
  18. #    are intended not to be application or major block specific. In order for this to be 
  19. #    accomodated all functions in the utility source file must use only the information
  20. #    that is passed to them or information that can be gleaned from the system via
  21. #    toolbox calls. There will be no header file associated with the utility file as this
  22. #    will destroy the intent of the utilities.
  23. #
  24. #    There are several files which contain information which is global in nature .These
  25. #    file are included in the main project header file. They are: x.Errors.h, x.Ext.h,
  26. #    x.Protos.h, x.Menus.h. The reason for containing them in seperate files is one of
  27. #    convienience and accesability. 
  28. #
  29. #
  30. #    Revision Log:
  31. #    
  32. #        11-05-91    RGK        Added the menu items for single color screens
  33. #        04-26-91    RGK        Creation
  34. #
  35. #
  36. ------------------------------------------------------------------------------*/
  37.  
  38. /* The following constants are used to identify menus and their items. The menu IDs
  39.    have an "m" prefix and the item numbers within each menu have an "i" prefix. */
  40.  
  41. #define    mApple                (rMenu)            /* Apple menu */
  42. #define    iAbout                1
  43.  
  44. #define    mFile                (rMenu) + 1        /* File menu */
  45. #define    iNew                1
  46. #define    iClose                4
  47. #define    iQuit                12
  48.  
  49. #define    mEdit                (rMenu) + 2        /* Edit menu */
  50. #define    iUndo                1
  51. #define    iCut                3
  52. #define    iCopy                4
  53. #define    iPaste                5
  54. #define    iClear                6
  55.  
  56. #define    mPatterns            (rMenu) + 3        /* Tests menu */
  57. #define    iTestPattern        1
  58. #define    iColorBars            2
  59. #define    iGrayScaleLD        3
  60. #define    iGrayScaleDL        4
  61. #define    iVLines                5
  62. #define    iHLines                6
  63. #define    iLBurst                7
  64. #define    iRedScreen            8
  65. #define    iGreenScreen        9
  66. #define    iBlueScreen            10
  67. #define    iWhiteScreen        11
  68.  
  69.  
  70. #define    mBeeps            (rMenu) + 4        /*    Options Menu */
  71. #define iBMSoprano            1
  72. #define iBMAlto                2
  73. #define iBMTenor            3
  74. #define iBMBass                4
  75. #define iBeepD                6
  76. #define iBeepE                7
  77.  
  78.  
  79.  
  80.  
  81.  
  82. /*----------------------------------------------------------------------------*/
  83. /* these #defines are used to set enable/disable flags of a menu */
  84.  
  85. #define AllItems    0b1111111111111111111111111111111    /* 31 flags */
  86. #define NoItems        0b0000000000000000000000000000000
  87. #define MenuItem1    0b0000000000000000000000000000001
  88. #define MenuItem2    0b0000000000000000000000000000010
  89. #define MenuItem3    0b0000000000000000000000000000100
  90. #define MenuItem4    0b0000000000000000000000000001000
  91. #define MenuItem5    0b0000000000000000000000000010000
  92. #define MenuItem6    0b0000000000000000000000000100000
  93. #define MenuItem7    0b0000000000000000000000001000000
  94. #define MenuItem8    0b0000000000000000000000010000000
  95. #define MenuItem9    0b0000000000000000000000100000000
  96. #define MenuItem10    0b0000000000000000000001000000000
  97. #define MenuItem11    0b0000000000000000000010000000000
  98. #define MenuItem12    0b0000000000000000000100000000000
  99.  
  100.  
  101.  
  102.  
  103.  
  104. /*----------------------------------------------------------------------------*/
  105. /*    The following line will effectivly eliminate the following typedefs from the 
  106.     this header file during the Rez process because Rez cannot handle typedefs.
  107.     All Resource files will define "__Rezing__" when processing, all C sources
  108.     will not.    */
  109.     
  110. #ifndef __Rezing__
  111.  
  112. /*----------------------------------------------------------------------------*/
  113. /*    Nothing Yet    */
  114.  
  115. #endif __Rezing__